<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="IE=edge" http-equiv="X-UA-Compatible">
    <title>欢迎页</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link href="css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="panel panel-default">
    <div class="panel-heading">了解BootDo</div>
    <div style="padding: 10px 0 20px 10px;">
        <h3>&nbsp;&nbsp;&nbsp;项目介绍</h3>
        <ul>
            <li>面向学习型的开源框架，简洁高效，减少过渡封装，展现技术本质</li>
            <li>Springboot作为基础框架，使用mybatis作为持久层框架</li>
            <li>使用官方推荐的thymeleaf做为模板引擎，shiro作为安全框架,主流技术，“一网打尽”</li>
            <li>极简配置，一键前后台代码生成</li>
        </ul>

        <h3>&nbsp;&nbsp;&nbsp;获取源码</h3>
        <ul>
            <li>Github地址：<a href="https://github.com/lcg0124/bootdo.git"
                            target="_blank" th:href="@{https://github.com/lcg0124/bootdo.git}">https://github.com/lcg0124/bootdo.git</a>
            </li>
            <li>Oschina地址：<a href="https://gitee.com/lcg0124/bootdo.git" target="_blank">https://gitee.com/lcg0124/bootdo.git</a>
            </li>
        </ul>

        <h3>&nbsp;&nbsp;&nbsp;官方QQ群</h3>
        <ul>
            <li>点击链接加入群聊【BootDo交流群】：<a href="https://jq.qq.com/?_wv=1027&k=5EYXfiZ">669039323</a></li>
            <li>点击链接加入群聊【BootDo交流二群】：<a href="https://jq.qq.com/?_wv=1027&k=5M659N4">614726589</a></li>
            <li>点击链接加入群聊【BootDo交流三群】：<a href="https://jq.qq.com/?_wv=1027&k=5tE3A9O">600801035</a></li>
            <li>点击链接加入群聊【CloudDo交流群】：<a href="https://jq.qq.com/?_wv=1027&k=5Zk12Xl">719741533</a></li>
        </ul>
        <ul>
        <button class="btn" onclick="openPage('http://bootdo.com','bootdo.com')">访问bootdo官网(新打开tab页事例)</button>
            <button class="btn" id="btn1">rabbitMQ direct路由交换机测试</button>
            <button class="btn" id="btn11">direct路由交换机测试2,消息确认机制</button>

            <button class="btn" id="btn2">rabbitMQ Fanout扇形交换测试</button>
            <button class="btn" id="btn3">rabbitMQ Topic订阅模式测试,路由topic.man</button>

            <button class="btn" id="btn4">rabbitMQ Topic订阅模式测试,路由topic.women</button>

            <button class="btn" id="btn12">订阅交换机3</button>
            <button class="btn" id="btn13">fanout交换机</button>

        </ul>
        <ul>
            <button class="btn" id="btn5">elasticsearch查询测试</button>
            <button class="btn" id="btn6">elasticsearch查询测试2</button>
            <button class="btn" id="btn7">elasticsearch添加测试</button>
            <button class="btn" id="btn8">elasticsearch更新测试</button>

            <button class="btn" id="btn9">elasticsearch查询测试9</button>

        </ul>
    </div>
</div>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/openTab.js"></script>
<script type="text/javascript">
    $(function () {

        $('#btn1').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendRabbitMQ",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });

        $('#btn11').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/directSendNews",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });
        $('#btn13').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendfanoutRabbitMQ2",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });


        $('#btn2').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendRabbitMQ2",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });

        $('#btn3').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendTopicMessage1",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });


        $('#btn4').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendTopicMessage2",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        addBook
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });


        $('#btn12').click(function () {
            $.ajax({
                cache: true,
                type: "POST",
                url: "/system/sysDept/sendTopicMessage3",
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        addBook
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });

        $('#btn5').click(function () {
            $.ajax({
                cache: true,
                type: "GET",
                url: "/system/es/getBookList",
                data: {"id": 1},
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });

        $('#btn6').click(function () {
            $.ajax({
                cache: true,
                type: "GET",
                url: "/system/es/getBookById",
                data: {"id": 2},
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });

        $('#btn7').click(function () {
            $.ajax({
                cache: true,
                type: "GET",
                url: "/system/es/addBook",
                data: {"id": 2},
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });


        $('#btn8').click(function () {
            $.ajax({
                cache: true,
                type: "GET",
                url: "/system/es/updateBook",
                data: {"id": 2},
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });


        $('#btn9').click(function () {
            $.ajax({
                cache: true,
                type: "GET",
                url: "/system/es/esSearch",
                data: {"id": 2},
                async: false,
                error: function (request) {
                    parent.layer.alert("Connection error");
                },
                success: function (data) {
                    if (data.code == 0) {
                        parent.layer.msg("操作成功");

                    } else {
                        parent.layer.alert(data.msg)
                    }

                }
            });
        });
    })
</script>
</html>